package fox.framework.rpc.common;

/**
 * 借鉴Spring Assert 真香
 * @author cuichao
 * @Description: Assert
 * @Date: create in 2021/3/12 16:08
 */
public final class Assert {


    public static void isNull(Object object, String message) {
        if (object != null) {
            throw new IllegalArgumentException(message);
        }
    }

    public static void notNull( Object object, String message) {
        if (object == null) {
            throw new IllegalArgumentException(message);
        }
    }

}
